<?php
/*
 * The main template file.
 *
 * @package WordPress
 * @subpackage urbanmeandering
 */

get_header(); ?>

	
	<div id="main" class="group">
		
		<div id="breadcrumbs">
			<ul>
				<li><a href="#">Home</a></li>
				<li><span>&nbsp;</span></li>
				<li>Food</li>
			</ul>
		</div>
		
		<section id="food-posts" class="archive posts-list-overview content">
			<h1 class="page-label"><span class="label">Food</span><span class="right">&nbsp;</span></h1>
			<div>
				
          <?php $cat_id = (current(get_the_category())->term_id); printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?>
          <?php $args = array('category' => $cat_id,
                              'post_type' => array('post','food','travel-activity','entertainment','advocacy-charity'));
          
                $posts = get_posts($args); ?>
          <?php foreach ( $posts as $post ): ?><?php //echo '<pre>'; print_r($post); echo '</pre>'; ?>
				<article>
            <a href="<?php echo get_permalink($post->ID); ?>"><?php echo get_the_post_thumbnail($post->ID,'medium'); ?></a>
					<div class="text">
						<a href="#"><h2 class="entry-title"><?php echo $post->post_title; ?></h2></a>
            <p class="entry-desc"><time datetime="2012-08-08"><?php echo date(get_option('date_format'),strtotime($post->post_date)); ?></time> - <?php echo $post->post_excerpt; ?>&hellip;</p>
					</div>
				</article>
          <?php endforeach; ?>
			
			</div>
		</section>
			
    <?php get_sidebar(); ?>
		
		
	</div>
	
<?php get_footer(); ?>